package cn.dd.crmweb.modules.sys.entity;

import cn.dd.crmweb.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@TableName(value = "sys_menu")
public class Menu extends BaseEntity implements Serializable {

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    private String name;

    private String path;

    private String icon;

    private String pid;

    private String pagePath;

    @TableField(exist = false)
    private List<Menu> children;
}
